package com.example.design_pattern.strategy;


import com.example.design_pattern.strategy.fly.FlyRocketPowered;

/**
 * Created by SQ_BXZ on 2019-02-15.
 */
public class Test {
    public static void main(String[] args) {
        Duck mallard = new MallardDuck();
        mallard.performQuack();
        mallard.performFly();
        mallard.setFlyBehavior(new FlyRocketPowered());
        mallard.performFly();
        System.out.println("==========");
    }
}
